
<form method="GET" action="">

{% if all_metric_sitenames|length_is:"1" %}
	<input type="hidden" name="site" value="{{ metric_site.name }}" />
{% else %}
	<p>Site: 
	<select name="site">
	{% for sn in all_metric_sitenames %}
	  <option value="{{ sn }}"{% ifequal sn metric_site.name %} selected{% endifequal %}>
			{{ sn }}
	  </option>
	{% endfor %}
	</select>
	{{ metric_site.name }}</p>
{% endif %}

<p>Set: 
<select name="set">
{% for sn in all_metric_setnames %}
  <option value="{{ sn }}"{% ifequal sn metric_set.name %} selected{% endifequal %}>
		{{ sn }}
  </option>
{% endfor %}
</select>
{{ metric_set.name }}

<input type="hidden" name="table" value="{{ use_table|yesno:"1,0" }}" />
</p>

<p>Start Date:

<select name="startdate">
{% for dat in date_choices_with_all %}
  <option value="{{ dat }}"{% ifequal dat start_date_str %} selected{% endifequal %}>
		{{ dat }}
  </option>
{% endfor %}
</select>
{{ start_date_str }}
&nbsp;

End Date:

<select name="enddate">
{% for dat in date_choices_with_all %}
  <option value="{{ dat }}"{% ifequal dat end_date_str %} selected{% endifequal %}>
		{{ dat }}
  </option>
{% endfor %}
</select>
{{ end_date_str }}

&nbsp; <input type="submit" value="Go" />
</p>
 
</form>
